package com.kyz.speechservice;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.widget.TextView;

public class MainActivity extends AppCompatActivity {
    private TextView tv;


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        tv = findViewById(R.id.tv1);
    }

    @Override
    protected void onResume() {
        super.onResume();
        if (SpeechService.isStart) {
            tv.setText("SpeechService已启动");
        } else {
            tv.setText("SpeechService未启动");
        }
    }
}